package com.github.codemperor.core.ajax;

import com.alibaba.fastjson.JSONObject;
import org.springframework.http.ResponseEntity;

public class AjaxTest {
    private static void queryBuyOrder() {
        ResponseEntity<Object> res = Ajax.build().
                get("https://api-gateway.uptradeit.com/api/home/buy/product?brandId=1&&seq=2020-01-07");
        System.out.println(JSONObject.toJSONString(res.getBody()));
    }


    public static void main(String[] args) {
        queryBuyOrder();
    }
}
